package com.indusfo.spc.pojo;

import com.indusfo.spc.common.pojo.BasePojo;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @author yujn
 */

@Table(name = "ba_dete")
public class Dete extends BasePojo {


    @Id
    @Column(name = "dete_id", insertable = false)
    private Integer deteId;//检测项目ID

    private String deteCode;//检测项目编码

    private String deteName;//检测项目名称

    private Integer deteUnitId;//计量单位 数据字典101003

    private Integer insTypeId;//仪器类型 数据字典101006

    private Date createDate;// 创建时间

    private Date modifyDate;// 修改时间

    private String remark;//说明

    private Integer badphenoId;//不良现象ID

    private String badphenoName;//不良现象名称

    private Integer errUpload;//异常上报

    private Integer projectTypeId;//项目分类

    private Integer dataState;//数据状态

    private Integer gatherTypeId;//采集类别

    private String deteUnitName;//计量单位 翻译

    private String insTypeName;//仪器类型 翻译

    private String projectTypeName;//项目分类  翻译

    private String dataStateName;//数据状态  翻译

    private String gatherTypeName;//采集类别  翻译

    private Integer badphenoTypeId;

    private String badphenoTypeName;

    public Integer getDeteId() {
        return deteId;
    }

    public void setDeteId(Integer deteId) {
        this.deteId = deteId;
    }

    public String getDeteCode() {
        return deteCode;
    }

    public void setDeteCode(String deteCode) {
        this.deteCode = deteCode== null ? null : deteCode.trim().replace(" ","");
    }

    public String getDeteName() {
        return deteName;
    }

    public void setDeteName(String deteName) {
        this.deteName = deteName== null ? null : deteName.trim().replace(" ","");
    }

    public Integer getDeteUnitId() {
        return deteUnitId;
    }

    public void setDeteUnitId(Integer deteUnitId) {
        this.deteUnitId = deteUnitId;
    }

    public Integer getInsTypeId() {
        return insTypeId;
    }

    public void setInsTypeId(Integer insTypeId) {
        this.insTypeId = insTypeId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getBadphenoId() {
        return badphenoId;
    }

    public void setBadphenoId(Integer badphenoId) {
        this.badphenoId = badphenoId;
    }

    public String getBadphenoName() {
        return badphenoName;
    }

    public void setBadphenoName(String badphenoName) {
        this.badphenoName = badphenoName;
    }

    public Integer getErrUpload() {
        return errUpload;
    }

    public void setErrUpload(Integer errUpload) {
        this.errUpload = errUpload;
    }

    public Integer getProjectTypeId() {
        return projectTypeId;
    }

    public void setProjectTypeId(Integer projectTypeId) {
        this.projectTypeId = projectTypeId;
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public Integer getGatherTypeId() {
        return gatherTypeId;
    }

    public void setGatherTypeId(Integer gatherTypeId) {
        this.gatherTypeId = gatherTypeId;
    }

    public String getDeteUnitName() {
        return deteUnitName;
    }

    public void setDeteUnitName(String deteUnitName) {
        this.deteUnitName = deteUnitName;
    }

    public String getInsTypeName() {
        return insTypeName;
    }

    public void setInsTypeName(String insTypeName) {
        this.insTypeName = insTypeName;
    }

    public String getProjectTypeName() {
        return projectTypeName;
    }

    public void setProjectTypeName(String projectTypeName) {
        this.projectTypeName = projectTypeName;
    }

    public String getDataStateName() {
        return dataStateName;
    }

    public void setDataStateName(String dataStateName) {
        this.dataStateName = dataStateName;
    }

    public String getGatherTypeName() {
        return gatherTypeName;
    }

    public void setGatherTypeName(String gatherTypeName) {
        this.gatherTypeName = gatherTypeName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getErrUploadName() {
        return errUploadName;
    }

    public void setErrUploadName(String errUploadName) {
        this.errUploadName = errUploadName;
    }

    public Dete(String deteCode, String deteName, String deteUnitName, String insTypeName, String projectTypeName, String gatherTypeName, String errUploadName, String badphenoName) {
        this.deteCode = deteCode;
        this.deteName = deteName;
        this.deteUnitName = deteUnitName;
        this.insTypeName = insTypeName;
        this.projectTypeName = projectTypeName;
        this.gatherTypeName = gatherTypeName;
        this.errUploadName = errUploadName;
        this.badphenoName = badphenoName;
    }

    /**
     * 异常上报名称
     */
    private String errUploadName;

    public Dete() {
    }

    public Integer getBadphenoTypeId() {
        return badphenoTypeId;
    }

    public void setBadphenoTypeId(Integer badphenoTypeId) {
        this.badphenoTypeId = badphenoTypeId;
    }

    public String getBadphenoTypeName() {
        return badphenoTypeName;
    }

    public void setBadphenoTypeName(String badphenoTypeName) {
        this.badphenoTypeName = badphenoTypeName;
    }
}
